<?php

namespace app\api\controller\admin;

use app\common\controller\TApi;

/**
 * 权限接口
 */
class Authority extends TApi
{

    protected $noNeedRight = ['*'];

    public function isAuth($url) {

        $isAuth = $this->auth->isAdmin();
        if(!$isAuth) {
            $isAuth = $this->auth->check($url);
        }

        return $isAuth;
    }

}